import request, { uploadFile } from "../utils/request";
// 添加
export const addSchoolWallAPI = (data) => {
  return request({
    url:`/SchoolWallService/messages`,
    method:'POST',
    data
  })
}
// 获取
export const getSchoolWallAPI = (data) => {
  return request({
    url:`/SchoolWallService/messages`,
    method:'GET',
    data
  })
}
// 点赞
export const dianZAPI = (data) => {
  return request({
    url:`/SchoolWallService/messages/like`,
    method:'GET',
    data
  })
}
// 获取详情
export const getSchoolDetailAPI = (data) => {
  return request({
    url:`/SchoolWallService/messages/detailInfo`,
    method:'GET',
    data
  })
}
// 获取详情评论
export const getDetailBrowseAPI = (id) => {
  return request({
    url:`/SchoolWallService/comments/${id}`,
    method:'GET',
  })
}
// 评论校园墙
export const browseAPI = (data) => {
  return request({
    url:`/SchoolWallService/comments`,
    method:'POST',
    data
  })
}
